package com.ruoyi.system.wnjk.service.impl;


import com.ruoyi.system.wnjk.domain.po.WnjkDisease;
import com.ruoyi.system.wnjk.mapper.WnjkDiseaseMapper;
import com.ruoyi.system.wnjk.service.IWnjkDiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 疾病信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class WnjkDiseaseServiceImpl implements IWnjkDiseaseService
{
    @Autowired
    private WnjkDiseaseMapper wnjkDiseaseMapper;

    /**
     * 查询疾病信息
     * 
     * @param id 疾病信息主键
     * @return 疾病信息
     */
    @Override
    public WnjkDisease selectWnjkDiseaseById(Long id)
    {
        return wnjkDiseaseMapper.selectWnjkDiseaseById(id);
    }

    /**
     * 查询疾病信息列表
     * 
     * @param wnjkDisease 疾病信息
     * @return 疾病信息
     */
    @Override
    public List<WnjkDisease> selectWnjkDiseaseList(WnjkDisease wnjkDisease)
    {
        return wnjkDiseaseMapper.selectWnjkDiseaseList(wnjkDisease);
    }

    /**
     * 新增疾病信息
     * 
     * @param wnjkDisease 疾病信息
     * @return 结果
     */
    @Override
    public int insertWnjkDisease(WnjkDisease wnjkDisease)
    {
        return wnjkDiseaseMapper.insertWnjkDisease(wnjkDisease);
    }

    /**
     * 修改疾病信息
     * 
     * @param wnjkDisease 疾病信息
     * @return 结果
     */
    @Override
    public int updateWnjkDisease(WnjkDisease wnjkDisease)
    {
        return wnjkDiseaseMapper.updateWnjkDisease(wnjkDisease);
    }

    /**
     * 批量删除疾病信息
     * 
     * @param ids 需要删除的疾病信息主键
     * @return 结果
     */
    @Override
    public int deleteWnjkDiseaseByIds(Long[] ids)
    {
        return wnjkDiseaseMapper.deleteWnjkDiseaseByIds(ids);
    }

    /**
     * 删除疾病信息信息
     * 
     * @param id 疾病信息主键
     * @return 结果
     */
    @Override
    public int deleteWnjkDiseaseById(Long id)
    {
        return wnjkDiseaseMapper.deleteWnjkDiseaseById(id);
    }
}
